package com.ww.springboot.boot.baseTest.design.代理;

/**
 * 描述：静态代理
 *
 * @author 🧑 ‍wanwei
 * @since 2023-02-04 16:14
 */
public class ProxyPlayer implements IPlayer{
    private Player player;

    public ProxyPlayer(Player player) {
        this.player = player;
    }

    @Override
    public String name() {
        return player.name();
    }

    @Override
    public void login() {
        player.login();
    }

    @Override
    public void play() {
        player.play();
    }
}
